package com.zabra.zl.ui.regist.model;

import com.zabra.zl.data.SimpleBean;
import com.zabra.zl.net.RetrofitClient;
import com.zabra.zl.ui.regist.contract.RegistContract;

import io.reactivex.Flowable;
import okhttp3.RequestBody;

public class RegistModel implements RegistContract.Model {
    @Override
    public Flowable<SimpleBean> getCode(RequestBody body) {
        return RetrofitClient.getInstance().getApi().getCodeData(body);
    }

    @Override
    public Flowable<SimpleBean> getData(RequestBody body) {
        return RetrofitClient.getInstance().getApi().getRegistData(body);
    }
}
